<template>
  <div class="accountadjust">
    <el-form :inline="true">
      <el-form-item label="申请单：">
        <el-select v-model="value" placeholder="请选择">
          <el-option
            v-for="item in options"
            :key="item.value"
            :label="item.label"
            :value="item.value"
          >
          </el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="到账时间：">
        <el-date-picker
          v-model="value1"
          align="right"
          type="date"
          placeholder="选择日期"
          :picker-options="pickerOptions"
        >
        </el-date-picker>
      </el-form-item>
      <el-form-item>
        <el-button icon="el-icon-search">查找</el-button>
        <el-button class="el-icon-edit">到账</el-button>
      </el-form-item>
    </el-form>
    <el-table
      :data="tableData"
      border
      style="width: 1211px"
      :header-cell-style="{ 'text-align': 'center' }"
      :cell-style="{ 'text-align': 'center' }"
      :row-style="{ padding: '0' }"
    >
      <el-table-column prop="name" label="姓名" width="120" />
      <el-table-column prop="province" label="身份证号" width="120" />
      <el-table-column prop="city" label="余额" width="120" />
      <el-table-column prop="address" label="调整金额" width="130" />
      <el-table-column prop="zip" label="说明" width="120" />
      <el-table-column prop="zip" label="状态" width="120" />
      <el-table-column prop="zip" label="操作员" width="120" />
      <el-table-column prop="zip" label="操作时间" width="120" />
      <el-table-column prop="zip" label="财务" width="120" />
      <el-table-column prop="zip" label="到账时间" width="120" />
    </el-table>
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="currentPage4"
      :page-sizes="[10, 50, 100, 200]"
      :page-size="100"
      layout="total, sizes, prev, pager, next, jumper"
      :total="this.tableData.length"
    >
    </el-pagination>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {
      msg: "账户调整到账",
      value: "", // 到账时间
      value1: "", // 申请单
      pickerOptions: {
        disabledDate(time) {
          return time.getTime() > Date.now();
        },
        shortcuts: [
          {
            text: "今天",
            onClick(picker) {
              picker.$emit("pick", new Date());
            },
          },
          {
            text: "昨天",
            onClick(picker) {
              const date = new Date();
              date.setTime(date.getTime() - 3600 * 1000 * 24);
              picker.$emit("pick", date);
            },
          },
          {
            text: "一周前",
            onClick(picker) {
              const date = new Date();
              date.setTime(date.getTime() - 3600 * 1000 * 24 * 7);
              picker.$emit("pick", date);
            },
          },
        ],
      },
      tableData: [], // 表单数据
      options: [],
      target: false,
      currentPage4: 1,
    };
  },
  methods: {
    handleSizeChange(val) {
      console.log(`每页 ${val} 条`);
    },
    handleCurrentChange(val) {
      console.log(`当前页: ${val}`);
    },
  },
};
</script>

<style scoped lang="scss">
.accountadjust {
  padding: 30px;
  /* &/deep/.cell {
    text-align: center;
  } */
  .el-pagination {
    max-width: 1211px;
    text-align: right;
    margin-top: 5px;
  }
}
</style>
